<?php
/*******************************************************************************
 * $Date:: Jan 8, 2011 9:46:01 AM                                              $
 * $Revision:                                                                  $
 * $Author:: Tuan Duong                                                        $
 * $Comment::                                                                  $
 ******************************************************************************/
/**
 * Description here...
 *
 * @package Lua
 * @subpackage Controller
 * @author Tuan Duong <bacduong[at]gmail[dot]com>
 * @version
 */

class Lua_Controller_Admin extends Lua_Controller
{
    protected function init()
    {
        parent::init();
    }

    public function preDispatch()
    {
        $this->initAcl();
        $this->initNavigation();
    }

    public function initNavigation()
    {
        $config = new Zend_Config_Xml(ROOT_PATH . DS . 'config' . DS . 'navigation.xml', 'admin');
		$container = new Zend_Navigation($config);
        $this->view->getAdapter()->navigation($container);
    }
}